<?php


namespace plugin\exportcenter\app\scheduler;


use plugin\exportcenter\app\logic\ExportLogic;
use core\contract\IScheduler;
use Workerman\Crontab\Crontab;

class Scheduler implements IScheduler
{
    public function start()
    {
        // 每1分钟执行一次
        new Crontab('0 */1 * * * *', function () {
            $logic = new ExportLogic();
            $logic->closeExport();
        });
    }
}